package com.lc.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lc.yygh.model.order.OrderInfo;
import com.lc.yygh.vo.order.OrderCountQueryVo;
import com.lc.yygh.vo.order.OrderQueryVo;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
    //生成订单  返回订单编号
    Long saveOrder(String scheduleId, Long patientId);

    //根据订单id获取订单
    OrderInfo getById(Long id);

    /**
     * 分页列表
     */
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    /**
     * 就诊提醒
     */
    void patientTips();

    //获取预约统计数据（每日订单的统计）
    Map<String,Object>getOrderCountMap(OrderCountQueryVo orderCountQueryVo);
}
